home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS15.ADF / IconMaker / IconMaker.DOC < prev    next >
Text File  |  1988-04-20  |  10KB  |  197 lines

  1. This file describes the tool iconmaker version 1.0. It has been developed
  2. using 1.2 beta 4 kickstart and has not been tested under 1.1 although
  3. none of the new intuition or dos functions have been used.
  4.  
  5. Iconmaker builds icons for files that were created without them. Many
  6. programs don't build icons when they create files using either a C
  7. runtime system or the dos file primitives. This is because icon creation
  8. requires extra program steps and it is difficult to create an in-memory
  9. icon structure with C program statements (the icons's picture is
  10. especially hard). However, if the program does have an icon file
  11. available, then it is a rather simple matter to clone it. Iconmaker takes
  12. this approach. 
  13.  
  14. Iconmaker may be invoked by the cli or workbench. If it is run from the
  15. cli, then it accepts zero or one argument: the name of a device and/or
  16. directory to start with.  If run from the workbench, then it also accepts
  17. one argument (use  extended selection: hold down the shift key and click
  18. Iconmaker (first) and then double click another object). The second
  19. object is used to determine the  directory to begin with. Iconmaker
  20. allows traversal up and down directory trees but cannot switch to another
  21. device; hence, start up Iconmaker on the disk with which you want to
  22. work. The default is to use the current directory if run from cli (with
  23. zero args) and the directory that Iconmaker is in if from workbench. 
  24.  
  25. When invoked, Iconmaker presents a requestor to the user as follows:
  26.  
  27. +-------------+---------------+               selected:directory/name
  28. |make project | -> Project    |       +--+ 
  29. |-------------+---------------|       |  |   file 1
  30. |make tool    | -> Tool       |       |  |   file 2
  31. |-------------+---------------|       |  |     .
  32. |make drawer  | -> (x,y)      |       |  |     .
  33. +-------------+---------------+       |  |     .
  34.                                       |  |     .
  35. +-------------+---------------+       |  |
  36. |Dir    Pick  | Info   Pick   |       |  |
  37. |-------------+---------------|       |  |
  38. |File   Pick  | Invert Pick   |       |  |
  39. |-------------+---------------|       |  |
  40. |Read    Dir  | Read Parent   |       |  |
  41. |-------------+---------------|       |  |
  42. |Refresh Dir  | DELETE FILES  |       |  |
  43. +-------------+---------------+       +--+
  44.                                 
  45. +-----------------------------+       +------+ +------+ +------+ +------+
  46. |Pattern                      |       |quit  | | all  | | none | | quit |
  47. | *                           |       +------+ +------+ +------+ +------+
  48. +-----------------------------+ 
  49.                                 
  50. +-----------------------------+ 
  51. |Icon Template Pathnames      | 
  52. |icons:|project|tool|drawer|  | 
  53. +-----------------------------+ 
  54.  
  55. The gadget buttons direct the operations of iconmaker and the scrollable
  56. file name display is used for the selection of files that are to have
  57. icons created for them. There are also 2 text gadgets.
  58.  
  59. Iconmaker can  create 3 types of icon files: project, tool, and drawer.
  60. In order to do this, it needs to be able to find 3 template icon files. 
  61.  
  62. The text requestor, Icon Template Pathnames, is for entering the location
  63. of the icon files that will be used as the templates. This requestor is
  64. initialized with the following:
  65.  
  66.     icons:|project|tool|drawer|
  67.  
  68. which has 4 text strings separated by vertical bars (|). The first
  69. (icons:) is a logical device name that can be defined to be equal to
  70. another device name and optionally one or more directories. For example,
  71. suppose there is a directory df0:icon_templates on the system disk. The
  72. following cli statement will define icons:
  73.  
  74.     assign icons: df0:icons_templates
  75.  
  76. Iconmaker would then look for 3 icon files,
  77.  
  78.         icons:project.info
  79.         icons:tool.info
  80.         icons:drawer.info
  81.  
  82. which when the assignment icons: is expanded, would result in the file
  83. names:
  84.  
  85.         df0:icons_templates/project.info
  86.         df0:icons_templates/tool.info
  87.         df0:icons_templates/drawer.info
  88.  
  89. The easiest way to use Iconmaker is to have a directory which contains the
  90. three template icons (and any others you want to use)  and use the
  91. startup-sequence file to make the assignment. 
  92.  
  93. Note that if you want to use the workbench INFO option to edit the icons
  94. tool-types, stack size, and default tool fields then you will need files
  95. called project and tool and an actual directory called drawer. The files
  96. and drawer may be empty since they are not used by Iconmaker. 
  97.  
  98. You may also modify any of the strings in the text requestor. For
  99. example, if you did not assign icons at the cli level, then you could
  100. modify it in the text requestor directly as such:
  101.  
  102.     df0:icons_templates/|project|tool|drawer|
  103.  
  104. Note the trailing slash (/). Iconmaker builds each of the three file
  105. names by concatonating the first string with each of the following 3
  106. strings and appending .info to form the three names. 
  107.  
  108. Changing the names of the files is fine but there is one caveat. The
  109. order of the names corresponds to the 3 types of icons. While it is ok to
  110. use icons for tools and projects interchangably, you may not use either a
  111. project or a tool icon for a drawer icon. To do so will cause a crash
  112. when the drawer icon is clicked since drawer icon files have information
  113. about a window to build. This information is missing in other icon types
  114. and Iconmaker does not try to construct this information. Note that it is
  115. not necessary to enter a return in this text requestor to have its
  116. current contents be used.
  117.  
  118. When Iconmaker builds the new icon files, it always sets up the (x,y)
  119. location of the icon with a special code that causes the Workbench to
  120. place the icon in a window wherever it finds room. This is usually to be
  121. preferred (at least by me) since it always will do the equivalent of a
  122. clean-up operation after all the icons have been read for a drawer.
  123. However, it causes the WB to not display any icons until all have been
  124. read so it may present a blank window for some time. If you prefer to
  125. have icons show up as usual, then you will have to use the WB option
  126. snapshot. However, with 1.2 of kickstart and a bit of memory allocated
  127. for disk buffers, opening a drawer is a faster operation. There is also
  128. an option to convert existing icon files to auto-placement icons.
  129.  
  130. Once the locations of the template files have been determined, one may
  131. set  about to tell iconmaker which files need icons. There are 7 ways to
  132. select files. The files in the scroll area will initially be un-selected.
  133. When they are selected, their color is complemented. Single files may be
  134. selected by pointing at their name with the mouse and clicking the left
  135. button. Any file that is already selected will become un-selected when
  136. clicked. The 7 selection methods are:
  137.  
  138. The buttons ALL and NONE will select just that. 
  139.  
  140. The buttons FILE PICK and DIR PICK are designed to select either files or
  141. directories that -- do not --  have icons already. Thus, a file or
  142. directory that has an associated .info file will not be selected.
  143. However, if either of these two buttons are clicked two times in a
  144. row, then they will select all files or directories. If selected
  145. repeatedly, the result will toggle back to the first select.
  146.  
  147. The button INFO PICK will select all *.info files except the file .info
  148. which is not a normal icon file. The three select buttons will first
  149. un-select all files.
  150.  
  151. INVERT PICK will toggle all the selected and un-selected files. 
  152.  
  153. The pattern requestor takes a * wildcard (as found on most other systems)
  154. for multiple character wildcarding and ? for single character wildcards.
  155. The pattern selects files in addition to any already selected files. The
  156. selection takes place when the return key is typed. Multiple selections
  157. may be made using the pattern gadget.
  158.  
  159. Once a set of file has been selected, an operation may be performed. The
  160. operations are:
  161.  
  162. Make PROJECT, TOOL, and DRAWER. These three operations make icon files.
  163. Before using these operations, the corresponding files should be
  164. selected. Do not make icon files for icon files; Iconmaker will not check
  165. this.
  166.  
  167. Convert, denoted as   ->    , is used to change tool and project icons.
  168. Only the icon type is changed, other information remains the same. The
  169. option to convert (x,y) will set the icon files position to floating as
  170. described above.
  171.  
  172. The DELETE FILES options may be used on any files, including directories,
  173. but directories must be empty first. Deletion brings up a last chance
  174. cancel requestor.
  175.  
  176. The remaining operations are concerned with directory lookup operations.
  177.  
  178. The operation of REFRESH DIR will cause the current directory to be
  179. re-read  and displayed. Normally, when icons are created in the current
  180. directory, the display is not updated for reasons of clarity and speed.
  181. This option will make the directory display current. The button READ
  182. PARENT will set the directory up the tree one level and read that
  183. directory. The button READ DIR will choose the first selected directory
  184. file and read that directory.
  185.  
  186. Some operations are invalid and will cause a requestor to appear. When
  187. one shows up with two OK buttons then the message is informational and
  188. the operation will be aborted once either OK button is picked. If the
  189. requestor shows an OK button and a CANCEL button then it means that one
  190. of the picked files is inappropriate to the action requested (for example
  191. make a project icon for a directory file). The OK button allows the
  192. operation to proceed (but does not operate on the offending file) while
  193. the CANCEL button will abort the operation on all remaining files that
  194. were selected.
  195.  
  196. There are two QUIT buttons that have identical meanings.
  197.